<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>编辑诉讼信息</title>
    <style>
        .lineHeight{
            line-height: 34px;
        }
    </style>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li>
                        <g:link controller="menu" action="index">CINDATA</g:link>
                    </li>
                    <li class="active">
                        <span>编辑诉讼信息</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                编辑诉讼信息
            </h2>
        </div>
    </div>
</div>

<g:form action="saveRecord">
    <input type="hidden" name="targetUri" id="targetUri" value="${params?.targetUri}"/>
    <g:if test="${flash.message}">
        <div class="message alert alert-info" role="status">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${this.menu}">
        <ul class="errors" role="alert">
            <g:eachError bean="${this.menu}" var="error">
                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                        error="${error}"/></li>
            </g:eachError>
        </ul>
    </g:hasErrors>

    <g:hiddenField name="id" id = "id"  value="${record?.id}"/>
    <g:if test="${stage >= 1}">

        <div class="content animate-panel">
            <div class="row">
                <div class="hpanel hblue">
                    <div class="panel-heading">
                        贷款信息
                    </div>

                    <div class="panel-body form-horizontal">
                        <div class="form-group">
                            <label class="col-md-2 control-label">借款人</label>
                            <div class="col-md-3 lineHeight">
                                ${record?.mortgage?.mortgageContact?.fullName}
                            </div>

                            <label class="col-md-2 control-label">贷款编号</label>
                            <div class="col-md-3 lineHeight">
                                ${record?.mortgage?.serialNumber}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">抵押权人</label>
                            <div class="col-md-3 lineHeight">
                                ${record?.mortgage?.mortgageeName}
                            </div>

                            <label class="col-md-2 control-label">担保机构</label>
                            <div class="col-md-3 lineHeight">
                                ${record?.mortgage?.guaranteeInstitution?.name}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    代偿信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">代偿时间</label>
                        <g:if test="${daichangShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.compensatoryDate}"><g:formatDate date="${record?.compensatoryDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="compensatoryDate" value="${record?.compensatoryDate}" precision="day"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">代偿金额(元)</label>
                        <g:if test="${daichangShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.compensatoryMoney}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="compensatoryMoney" id="compensatoryMoney" value="${record?.compensatoryMoney}"/>
                            </div>
                        </g:else>


                    </div>
                    <div class="form-group">
                    <label class="col-md-2 control-label is-required">律所机构</label>
                    <g:if test="${daichangShow}">
                        <div class="col-md-3 lineHeight">
                            <span>${record?.lawAccount}</span>
                        </div>
                    </g:if>
                    <g:else>
                        <div class="col-md-3 lineHeight">
                            <g:hiddenField name="lawAccount1" value="${record?.lawAccount?.id}"></g:hiddenField>
                            <g:select class="form-control" name="lawAccount" id="lawAccount"
                                      from="${com.cindata.Account.executeQuery("from Account where type.code = 'LawAccount' ")}"
                                      valueMessagePrefix="status" optionKey="id" optionValue="name"
                                      value="${record?.lawAccount?.id}"
                                      noSelection="${["-1": '请选择律所机构']}"/>
                        </div>
                    </g:else>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 2}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    立案信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">



                        <label class="col-md-2 control-label is-required">案号</label>

                            <g:if test="${lianShow}">
                             <div class="col-md-3 lineHeight">
                                <span>${record?.caseNumber}</span>
                             </div>
                            </g:if>
                            <g:else>
                             <div class="col-md-3">
                                    <g:textField class="form-control" type="text" name="caseNumber" id="caseNumber" value="${record?.caseNumber}"/>
                             </div>
                            </g:else>


                        <label class="col-md-2 control-label">申诉人</label>
                            <g:if test="${lianShow}">
                                <div class="col-md-3 lineHeight">
                                    <span>${record?.appeals}</span>
                                </div>
                            </g:if>
                            <g:else>
                                <div class="col-md-3 lineHeight">
                                    <g:textField class="form-control" type="text" name="appeals" id="appeals" value="${record?.appeals}"/>
                                </div>
                            </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">申诉单位</label>
                        <g:if test="${lianShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.appealsUnit}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="appealsUnit" id="appealsUnit" value="${record?.appealsUnit}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">法定代表人</label>

                        <g:if test="${lianShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.legalRepresentative}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="legalRepresentative" id="legalRepresentative" value="${record?.legalRepresentative}"/>
                            </div>
                        </g:else>

                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">案由</label>

                        <g:if test="${lianShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.handlingSituation}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="handlingSituation" id="handlingSituation" value="${record?.handlingSituation}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">立案时间</label>
                        <g:if test="${lianShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.filingDate}"><g:formatDate date="${record?.filingDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="filingDate" value="${record?.filingDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 3}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    开庭信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label">原告</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.accuser}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="accuser" id="accuser" value="${record?.accuser}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">原告委托代理人</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.accuserAgent}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="accuserAgent" id="accuserAgent" value="${record?.accuserAgent}"/>
                            </div>
                        </g:else>

                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">开庭律师</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.courtLawyer}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="courtLawyer" id="courtLawyer" value="${record?.courtLawyer}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">开庭时间</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.courtDate}"><g:formatDate date="${record?.courtDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="courtDate" value="${record?.courtDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">法院</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.court}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="court" id="court" value="${record?.court}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">法官</label>
                        <g:if test="${kaitingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judger}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judger" id="judger" value="${record?.judger}"/>
                            </div>
                        </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 4}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    判决信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">审判员</label>
                        <g:if test="${panjueShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judiciary}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judiciary" id="judiciary" value="${record?.judiciary}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">书记员</label>
                        <g:if test="${panjueShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.recorder}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="recorder" id="recorder" value="${record?.recorder}"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">审判长</label>
                        <g:if test="${panjueShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.presidingJudge}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="presidingJudge" id="presidingJudge" value="${record?.presidingJudge}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">判决时间</label>
                        <g:if test="${panjueShow}">
                            <div class="col-md-3 lineHeight">
                                <span><g:if test="${record?.judgmentDate}"><g:formatDate date="${record?.judgmentDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="judgmentDate" value="${record?.judgmentDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">判决结果</label>
                        <g:if test="${panjueShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judgmentResult}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judgmentResult" id="judgmentResult" value="${record?.judgmentResult}"/>
                            </div>
                        </g:else>

                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 5}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    二审上诉信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">上诉人</label>
                        <g:if test="${shangsu2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.appellant}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="appellant" id="appellant" value="${record?.appellant}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">被上诉人</label>
                        <g:if test="${shangsu2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.appellee}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="appellee" id="appellee" value="${record?.appellee}"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">上诉请求</label>
                        <g:if test="${shangsu2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.appealsRequest}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="appealsRequest" id="appealsRequest" value="${record?.appealsRequest}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">事实与理由</label>
                        <g:if test="${shangsu2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.appealReason}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="appealReason" id="appealReason" value="${record?.appealReason}"/>
                            </div>
                        </g:else>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">上诉日期</label>
                        <g:if test="${shangsu2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>
                                    <g:if test="${record?.appealDate}"><g:formatDate date="${record?.appealDate}" format="yyyy-MM-dd"></g:formatDate></g:if>
                                </span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="appealDate" value="${record?.appealDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 6}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    二审开庭信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">开庭律师</label>
                        <g:if test="${kaiting2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.courtLawyer2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="courtLawyer2" id="courtLawyer2" value="${record?.courtLawyer2}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">开庭时间</label>
                        <g:if test="${kaiting2Show}">
                            <div class="col-md-3 lineHeight">
                                <span><g:if test="${record?.courtDate2}"><g:formatDate date="${record?.courtDate2}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="courtDate2" value="${record?.courtDate2}" precision="day"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">法院</label>
                        <g:if test="${kaiting2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.court2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="court2" id="court2" value="${record?.court2}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">法官</label>
                        <g:if test="${kaiting2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judger2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judger2" id="judger2" value="${record?.judger2}"/>
                            </div>
                        </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 7}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    二审判决信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">审判员</label>
                        <g:if test="${panjue2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judiciary2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judiciary2" id="judiciary2" value="${record?.judiciary2}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">书记员</label>
                        <g:if test="${panjue2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.recorder2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="recorder2" id="recorder2" value="${record?.recorder2}"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">审判长</label>
                        <g:if test="${panjue2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.presidingJudge2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="presidingJudge2" id="presidingJudge2" value="${record?.presidingJudge2}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">审判时间</label>
                        <g:if test="${panjue2Show}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.judgmentDate2}"><g:formatDate date="${record?.judgmentDate2}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="judgmentDate2" value="${record?.judgmentDate2}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">审判结果</label>
                        <g:if test="${panjue2Show}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.judgmentResult2}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="judgmentResult2" id="judgmentResult2" value="${record?.judgmentResult2}"/>
                            </div>
                        </g:else>

                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <g:if test="${stage >= 8}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    申请执行信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label">申请事项</label>
                        <g:if test="${zhixingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.applyItem}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="applyItem" id="applyItem" value="${record?.applyItem}"/>
                            </div>
                        </g:else>

                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">执行案号</label>
                        <g:if test="${zhixingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.executeCaseNumber}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="executeCaseNumber" id="executeCaseNumber" value="${record?.executeCaseNumber}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">申请执行时间</label>
                        <g:if test="${zhixingShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.applyExecueDate}"><g:formatDate date="${record?.applyExecueDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="applyExecueDate" value="${record?.applyExecueDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">执行法官</label>
                        <g:if test="${zhixingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.executeJudger}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="executeJudger" id="executeJudger" value="${record?.executeJudger}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">执行结果</label>
                        <g:if test="${zhixingShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.executeResult}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="executeResult" id="executeResult" value="${record?.executeResult}"/>
                            </div>
                        </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>


    <g:if test="${stage >= 9}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    拍卖信息
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">标的物信息</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.subjectInfo}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="subjectInfo" id="subjectInfo" value="${record?.subjectInfo}"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label is-required">起拍价格</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.startPrice}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="startPrice" id="startPrice" value="${record?.startPrice}"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">起拍时间</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.startDate}"><g:formatDate date="${record?.startDate}" format="yyyy-MM-dd" ></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="startDate" value="${record?.startDate}" precision="day"/>
                            </div>
                        </g:else>

                        <label class="col-md-2 control-label">结束时间</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span> <g:if test="${record?.endDate}"><g:formatDate date="${record?.endDate}" format="yyyy-MM-dd"></g:formatDate></g:if></span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:datePicker class="form-control" name="endDate" value="${record?.endDate}" precision="day"/>
                            </div>
                        </g:else>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">竞拍结果</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.auctionResult}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="auctionResult" id="auctionResult" value="${record?.auctionResult}"/>
                            </div>
                        </g:else>
                        <label class="col-md-2 control-label">拍卖处置</label>
                        <g:if test="${paimaiShow}">
                            <div class="col-md-3 lineHeight">
                                <span>${record?.auctionDisposal}</span>
                            </div>
                        </g:if>
                        <g:else>
                            <div class="col-md-3 lineHeight">
                                <g:textField class="form-control" type="text" name="auctionDisposal" id="auctionDisposal" value="${record?.auctionDisposal}"/>
                            </div>
                        </g:else>

                    </div>
                    <div class="form-group">
                    <label class="col-md-2 control-label is-required">拍卖机构</label>
                    <g:if test="${paimaiShow}">
                        <div class="col-md-3 lineHeight">
                            <span>${record?.auctioneerAccount}</span>
                        </div>
                    </g:if>
                    <g:else>
                        <div class="col-md-3 lineHeight">
                            <g:hiddenField name="auctioneerAccount1" value="${record?.auctioneerAccount?.id}"></g:hiddenField>
                            <g:select class="form-control" name="auctioneerAccount" id="auctioneerAccount"
                                      from="${com.cindata.Account.executeQuery("from Account where type.code = 'AuctioneerAccount' ")}"
                                      valueMessagePrefix="status" optionKey="id" optionValue="name"
                                      value="${record?.auctioneerAccount?.id}"
                                      noSelection="${["-1": '请选择拍卖机构']}"/>
                        </div>
                    </g:else>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </g:if>

    <div class="content animate-panel">
        <div class="row">
                <div class="panel-body form-horizontal">
                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="create" value="保存"/>
                        </div>
                    </div>
                </div>
        </div>
    </div>

</g:form>

<g:javascript>
$(function () {
$('.datepicker').datepicker({
language: 'zh-CN',
    format:"yyyy/mm/dd"
});
$('.input-group.date').datepicker({ });
$('.input-daterange').datepicker({ });
});

// $("#city").bind("change", function(){
//     $("#district option").remove();
//     $("#s2id_district span:first").html("请选择行政区");
//     var city = $("#city").val()
//     $("#district").append("<option value='-1' >请选择行政区</option>")
//     if(city=='-1'){
//         return
//     }
//     $.ajax({
//         url: "/estate/districtList",
//         type: "POST",
//         data: {'city': city} ,
//         success: function(result){
//             for(var i=0; i < result.districtList.length; i++){
//                 $("#district").append("<option value=" + result.districtList[i].zoneNumber + ">" + result.districtList[i].name + "</option>")
//             }
//         }
//     });
// });
// $("#city").change();

</g:javascript>
</body>
</html>
